import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)
import user from './modules/user'
import product from './modules/product'

export default new Vuex.Store({
    // 将vuex模块化,使数据管理更加清晰
    modules: {
        user,
        product
    }
})